package sdk.pay.utils;

import android.content.Context;

/**
 * Created by Steven on 2016/8/9 0009.
 */

public class PayContextUtil {
    private Context mContext;

    private static class Holder {
        static PayContextUtil sMPayContextUtil = new PayContextUtil();
    }

    public static PayContextUtil getInstance() {
        return Holder.sMPayContextUtil;
    }

    public void setContext(Context context) {
        mContext = context;
    }

    public Context getContext() {
        if (null == mContext) {
            throw new RuntimeException("Context not init");
        }
        return mContext;
    }
}
